package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by zisheng on 2017/9/18.
 */

public class UserNew {


    /**
     * code : 2000
     * data : {"sid":"6339662bdce4455da9c23d8d18230a2e","id":null,"openId":null,"mobile":"18809404444","userName":null,"nickName":null,"gender":"0","idcard":null,"age":null,"balance":null,"address":null,"vip":false,"loginTime":1505467570000,"registerTime":1505457426000,"addressType":null,"birthday":null,"email":null,"vipDate":null,"feedBack":null,"headPic":null,"accountId":"6339662bdce4455da9c23d8d18230a2e","vipWay":null,"memberId":"mem1465898689736dgPt","memberName":null,"buyType":null,"pushId":"28315054574264213270","familyName":"金克斯","name":null,"enName":null,"isHot":null,"areaId":"area1476075851393EjKc","needPassword":null,"pufaMerId":"212619466524","walletNeedPassword":"1","vipDeadline":null,"accountIdEncrypt":"1d89ba27b256995bc544bd981e362985","countrySid":"1","countryCode":"86","countryName":"中国","avatarKey":"account/6339662bdce4455da9c23d8d18230a2e/avatar","imStatus":null,"deviceToken":null,"accountAddresses":[]}
     * message :
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean implements Parcelable {
        /**
         * sid : 6339662bdce4455da9c23d8d18230a2e
         * id : null
         * openId : null
         * mobile : 18809404444
         * userName : null
         * nickName : null
         * gender : 0
         * idcard : null
         * age : null
         * balance : null
         * address : null
         * vip : false
         * loginTime : 1505467570000
         * registerTime : 1505457426000
         * addressType : null
         * birthday : null
         * email : null
         * vipDate : null
         * feedBack : null
         * headPic : null
         * accountId : 6339662bdce4455da9c23d8d18230a2e
         * vipWay : null
         * memberId : mem1465898689736dgPt
         * memberName : null
         * buyType : null
         * pushId : 28315054574264213270
         * familyName : 金克斯
         * name : null
         * enName : null
         * isHot : null
         * areaId : area1476075851393EjKc
         * needPassword : null
         * pufaMerId : 212619466524
         * walletNeedPassword : 1
         * vipDeadline : null
         * accountIdEncrypt : 1d89ba27b256995bc544bd981e362985
         * countrySid : 1
         * countryCode : 86
         * countryName : 中国
         * avatarKey : account/6339662bdce4455da9c23d8d18230a2e/avatar
         * imStatus : null
         * deviceToken : null
         * accountAddresses : []
         */

        private String sid;
        private String id;
        private String openId;
        private String mobile;
        private String userName;
        private String nickName;
        private String gender;
        private String idcard;
        private String age;
        private String balance;
        private String address;
        private boolean vip;
        private long loginTime;
        private long registerTime;
        private String addressType;
        private long birthday;
        private String email;
        private String vipDate;
        private String feedBack;
        private String headPic;
        private String accountId;
        private String vipWay;
        private String memberId;
        private String memberName;
        private String buyType;
        private String pushId;
        private String familyName;
        private String name;
        private String enName;
        private boolean isHot;
        private String areaId;
        private String needPassword;
        private String pufaMerId;
        private String walletNeedPassword;
        private String vipDeadline;
        private String accountIdEncrypt;
        private String countrySid;
        private String countryCode;
        private String countryName;
        private String avatarKey;
        private String imStatus;
        private String deviceToken;

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getIdcard() {
            return idcard;
        }

        public void setIdcard(String idcard) {
            this.idcard = idcard;
        }

        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public boolean isVip() {
            return vip;
        }

        public void setVip(boolean vip) {
            this.vip = vip;
        }

        public long getLoginTime() {
            return loginTime;
        }

        public void setLoginTime(long loginTime) {
            this.loginTime = loginTime;
        }

        public long getRegisterTime() {
            return registerTime;
        }

        public void setRegisterTime(long registerTime) {
            this.registerTime = registerTime;
        }

        public String getAddressType() {
            return addressType;
        }

        public void setAddressType(String addressType) {
            this.addressType = addressType;
        }

        public long getBirthday() {
            return birthday;
        }

        public void setBirthday(long birthday) {
            this.birthday = birthday;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getVipDate() {
            return vipDate;
        }

        public void setVipDate(String vipDate) {
            this.vipDate = vipDate;
        }

        public String getFeedBack() {
            return feedBack;
        }

        public void setFeedBack(String feedBack) {
            this.feedBack = feedBack;
        }

        public String getHeadPic() {
            return headPic;
        }

        public void setHeadPic(String headPic) {
            this.headPic = headPic;
        }

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getVipWay() {
            return vipWay;
        }

        public void setVipWay(String vipWay) {
            this.vipWay = vipWay;
        }

        public String getMemberId() {
            return memberId;
        }

        public void setMemberId(String memberId) {
            this.memberId = memberId;
        }

        public String getMemberName() {
            return memberName;
        }

        public void setMemberName(String memberName) {
            this.memberName = memberName;
        }

        public String getBuyType() {
            return buyType;
        }

        public void setBuyType(String buyType) {
            this.buyType = buyType;
        }

        public String getPushId() {
            return pushId;
        }

        public void setPushId(String pushId) {
            this.pushId = pushId;
        }

        public String getFamilyName() {
            return familyName;
        }

        public void setFamilyName(String familyName) {
            this.familyName = familyName;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEnName() {
            return enName;
        }

        public void setEnName(String enName) {
            this.enName = enName;
        }

        public boolean getIsHot() {
            return isHot;
        }

        public void setIsHot(boolean isHot) {
            this.isHot = isHot;
        }

        public String getAreaId() {
            return areaId;
        }

        public void setAreaId(String areaId) {
            this.areaId = areaId;
        }

        public String getNeedPassword() {
            return needPassword;
        }

        public void setNeedPassword(String needPassword) {
            this.needPassword = needPassword;
        }

        public String getPufaMerId() {
            return pufaMerId;
        }

        public void setPufaMerId(String pufaMerId) {
            this.pufaMerId = pufaMerId;
        }

        public String getWalletNeedPassword() {
            return walletNeedPassword;
        }

        public void setWalletNeedPassword(String walletNeedPassword) {
            this.walletNeedPassword = walletNeedPassword;
        }

        public String getVipDeadline() {
            return vipDeadline;
        }

        public void setVipDeadline(String vipDeadline) {
            this.vipDeadline = vipDeadline;
        }

        public String getAccountIdEncrypt() {
            return accountIdEncrypt;
        }

        public void setAccountIdEncrypt(String accountIdEncrypt) {
            this.accountIdEncrypt = accountIdEncrypt;
        }

        public String getCountrySid() {
            return countrySid;
        }

        public void setCountrySid(String countrySid) {
            this.countrySid = countrySid;
        }

        public String getCountryCode() {
            return countryCode;
        }

        public void setCountryCode(String countryCode) {
            this.countryCode = countryCode;
        }

        public String getCountryName() {
            return countryName;
        }

        public void setCountryName(String countryName) {
            this.countryName = countryName;
        }

        public String getAvatarKey() {
            return avatarKey;
        }

        public void setAvatarKey(String avatarKey) {
            this.avatarKey = avatarKey;
        }

        public String getImStatus() {
            return imStatus;
        }

        public void setImStatus(String imStatus) {
            this.imStatus = imStatus;
        }

        public String getDeviceToken() {
            return deviceToken;
        }

        public void setDeviceToken(String deviceToken) {
            this.deviceToken = deviceToken;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.sid);
            dest.writeString(this.id);
            dest.writeString(this.openId);
            dest.writeString(this.mobile);
            dest.writeString(this.userName);
            dest.writeString(this.nickName);
            dest.writeString(this.gender);
            dest.writeString(this.idcard);
            dest.writeString(this.age);
            dest.writeString(this.balance);
            dest.writeString(this.address);
            dest.writeByte(this.vip ? (byte) 1 : (byte) 0);
            dest.writeLong(this.loginTime);
            dest.writeLong(this.registerTime);
            dest.writeString(this.addressType);
            dest.writeLong(this.birthday);
            dest.writeString(this.email);
            dest.writeString(this.vipDate);
            dest.writeString(this.feedBack);
            dest.writeString(this.headPic);
            dest.writeString(this.accountId);
            dest.writeString(this.vipWay);
            dest.writeString(this.memberId);
            dest.writeString(this.memberName);
            dest.writeString(this.buyType);
            dest.writeString(this.pushId);
            dest.writeString(this.familyName);
            dest.writeString(this.name);
            dest.writeString(this.enName);
            dest.writeByte(this.isHot ? (byte) 1 : (byte) 0);
            dest.writeString(this.areaId);
            dest.writeString(this.needPassword);
            dest.writeString(this.pufaMerId);
            dest.writeString(this.walletNeedPassword);
            dest.writeString(this.vipDeadline);
            dest.writeString(this.accountIdEncrypt);
            dest.writeString(this.countrySid);
            dest.writeString(this.countryCode);
            dest.writeString(this.countryName);
            dest.writeString(this.avatarKey);
            dest.writeString(this.imStatus);
            dest.writeString(this.deviceToken);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.sid = in.readString();
            this.id = in.readString();
            this.openId = in.readString();
            this.mobile = in.readString();
            this.userName = in.readString();
            this.nickName = in.readString();
            this.gender = in.readString();
            this.idcard = in.readString();
            this.age = in.readString();
            this.balance = in.readString();
            this.address = in.readString();
            this.vip = in.readByte() != 0;
            this.loginTime = in.readLong();
            this.registerTime = in.readLong();
            this.addressType = in.readString();
            this.birthday = in.readLong();
            this.email = in.readString();
            this.vipDate = in.readString();
            this.feedBack = in.readString();
            this.headPic = in.readString();
            this.accountId = in.readString();
            this.vipWay = in.readString();
            this.memberId = in.readString();
            this.memberName = in.readString();
            this.buyType = in.readString();
            this.pushId = in.readString();
            this.familyName = in.readString();
            this.name = in.readString();
            this.enName = in.readString();
            this.isHot = in.readByte() != 0;
            this.areaId = in.readString();
            this.needPassword = in.readString();
            this.pufaMerId = in.readString();
            this.walletNeedPassword = in.readString();
            this.vipDeadline = in.readString();
            this.accountIdEncrypt = in.readString();
            this.countrySid = in.readString();
            this.countryCode = in.readString();
            this.countryName = in.readString();
            this.avatarKey = in.readString();
            this.imStatus = in.readString();
            this.deviceToken = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
